package com.bumblebee.server.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

@Entity
public class HouseHold extends AbstractEntity{

	@Column(nullable = false)
	private String name;
	
	private Date dob;
	
	@Column(nullable = false)
	private String gender;
	
	@Column(nullable = false)
	private Relationship relation;

	@OneToOne
	private CommunicationDetails contactDetails;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDob() {
		return dob;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Relationship getRelation() {
		return relation;
	}

	public void setRelation(Relationship relation) {
		this.relation = relation;
	}

	public CommunicationDetails getContactDetails() {
		return contactDetails;
	}

	public void setContactDetails(CommunicationDetails contactDetails) {
		this.contactDetails = contactDetails;
	}

	
}
